'use strict';

const express = require('express');
const foodController = require('../../app/controllers/food.server.controller');

module.exports = (app) => {
    app.route('/findFoodListByIcnum/:icnum')
    .get(foodController.findFoodListByIcnum);
    app.route('/getFoodByIcnumFtype/:icnum/:ftype')
    .get(foodController.getFoodByIcnumFtype);
    app.route('/addFood')
    .post(foodController.addFood);
};